﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UpFile
{
    public partial class PlayVdio : Form
    {
        public PlayVdio()
        {
            InitializeComponent();
        }
        private string strUrl = "";
        private string strName = "";
        public PlayVdio(string strUrl,string strName)
        {

           this.strUrl = strUrl;
           this.strName = strName;
            InitializeComponent();
        }

        private void PlayVdio_Load(object sender, EventArgs e)
        {
            //labName.Text = strName;
            //this.axWindowsMediaPlayer1 = new AxWMPLib.AxWindowsMediaPlayer();
            //this.axWindowsMediaPlayer1.Enabled = true;
            //this.axWindowsMediaPlayer1.Location = new System.Drawing.Point(0, 400);
            //this.axWindowsMediaPlayer1.Name = "axWindowsMediaPlayer1";
            //this.axWindowsMediaPlayer1.Size = new System.Drawing.Size(800, 500);
            //this.axWindowsMediaPlayer1.TabIndex = 2;
            //this.Controls.Add(this.axWindowsMediaPlayer1); 
          //     labName.Text = strName;
          this.axWindowsMediaPlayer1.URL = strUrl;
          
           //   this.axWindowsMediaPlayer1.URL = "ftp://Administrator:Windows2008@192.168.0.253/Video/4d28c4c8-4a1d-4a46-95f9-c65b4c35f117.f4v";
          
        }

        private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e)
        {

        }
    }
}
